<!--
  @author duanzuocai
  @since 2018/10/19 23:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>接收信息角色设置</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        消息管理>
        <a lay-href="/msg/conf/list.action">消息配置列表</a>
    </blockquote>

    <div class="layui-card">

        <div th:replace="msg/conf/_tab::tab"></div>

        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="msgId" th:value="${obj.msgId}"/>
            <div class="layui-form-item" style="margin-left: -100px">
                <label class="layui-form-label">角色</label>

                <div class="layui-input-block">
                    <input type="checkbox" th:each="role,stat:${items}" name="roles" th:value="${role.roleId}" lay-skin="primary" th:title="${role.roleName}" th:checked="${map[role.roleId] != null}">
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>

<!--            <div class="layui-form-item submit">-->
<!--                <div class="layui-input-block">-->
<!--                    <button th:if="${#authPermit.checkPermit('/standard/record/addEditDetail.action')}" class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">保存</button>-->
<!--                    <button type="reset" class="layui-btn layui-btn-primary"-->
<!--                            onclick="layui.admin.events.closeThisTabs();">关闭-->
<!--                    </button>-->
<!--                </div>-->
<!--            </div>-->

            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit" th:if="${#authPermit.checkPermit('/msg/conf/receive/role/save.action')}">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary"
                                onclick="layui.admin.events.closeThisTabs();">取消
                        </button>
                    </div>
                </div>
            </div>
        </form>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        msgId: [[${obj.msgId}]]
    };

    layui.config({
        version: 20200519,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        msg_conf_receiverole_edit: "msg/conf/zmn.plat.msg.conf.receiverole.edit",
    }).use(['index', 'msg_conf_receiverole_edit']);

</script>
</body>
</html>